Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / app / src / main / java / com / geeksville / mesh / repository / network / NetworkRepositoryModule.kt

Displaying Raw • Download

app/src/main/java/com/geeksville/mesh/repository/network/NetworkRepositoryModule.kt 78274c792318331b11ab64cd28e58e829875b8c2 (78274c79) Text, 1.51 KB

T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

Tff7b72package T7ee787com.geeksville.mesh.repository.network

Tff7b72import T7ee787android.app.Application
Tff7b72import T7ee787android.content.Context
Tff7b72import T7ee787android.net.ConnectivityManager
Tff7b72import T7ee787android.net.nsd.NsdManager
Tff7b72import T7ee787dagger.Module
Tff7b72import T7ee787dagger.Provides
Tff7b72import T7ee787dagger.hilt.InstallIn
Tff7b72import T7ee787dagger.hilt.components.SingletonComponent

Tf0883e@Module
Tf0883e@InstallInTb4b4b4(Te6edf3SingletonComponentTff7b72::Te6edf3classTb4b4b4)
Tff7b72class T56d364NetworkRepositoryModule Tb4b4b4{
Tff7b72companion Tff7b72object Tb4b4b4{
Tf0883e@Provides
Tff7b72fun Td2a8ffprovideConnectivityManagerTb4b4b4(Te6edf3applicationTb4b4b4: Te6edf3ApplicationTb4b4b4)Tb4b4b4: Te6edf3ConnectivityManager Tb4b4b4{
Tff7b72return Te6edf3applicationTb4b4b4.Te6edf3getSystemServiceTb4b4b4(Te6edf3ContextTb4b4b4.Te6edf3CONNECTIVITY_SERVICETb4b4b4) Tff7b72as Te6edf3ConnectivityManager
Tb4b4b4}

Tf0883e@Provides
Tff7b72fun Td2a8ffprovideNsdManagerTb4b4b4(Te6edf3applicationTb4b4b4: Te6edf3ApplicationTb4b4b4)Tb4b4b4: Te6edf3NsdManager Tb4b4b4{
Tff7b72return Te6edf3applicationTb4b4b4.Te6edf3getSystemServiceTb4b4b4(Te6edf3ContextTb4b4b4.Te6edf3NSD_SERVICETb4b4b4) Tff7b72as Te6edf3NsdManager
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s